<template>
    <el-result
        icon="warning"
        title="404"
        sub-title="您要找的页面丢失了~"
      >
        <template #extra>
          <el-button type="primary" @click="goBack">返回</el-button>
        </template>
      </el-result>
</template>

<script setup>
import { useCookies } from '@vueuse/integrations/useCookies'
import { useRouter } from 'vue-router'
const cookie = useCookies();
const router = useRouter();
const goBack = () =>{
   // 把激活菜单改为要返回的菜单地址

   var path = cookie.get("fromURL")
   router.push(path)
}
</script>